package com.ruoyi.business.domain;

import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 消息通知对象 t_message_info
 *
 * @author Tellsea
 * @date 2024-01-26
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TMessageInfo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 消息类型 1-消息 2-通知书
     */
    @Excel(name = "消息类型 1-消息 2-通知书")
    private Long type;

    /**
     * 关联ID
     */
    @Excel(name = "关联ID")
    private Long refId;

    /**
     * 发送人ID
     */
    @Excel(name = "发送人ID")
    private Long sendUserId;

    /**
     * 接收人ID
     */
    @Excel(name = "接收人ID")
    private Long receiveUserId;

    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    private String content;

    /**
     * 阅读状态 1-未读 2-已读
     */
    @Excel(name = "阅读状态 1-未读 2-已读")
    private Long readStatus;

    /**
     * 是否删除 1-是 2-否
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deleteStatus;

}
